package com.ezops.gateway;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.core.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MqSender {

	@Autowired
	private AmqpTemplate messageQueue;

	public void send(Message message) {
		messageQueue.convertAndSend(message);
	}

}
